import java.util.Scanner;

/**
 * Created by dllo on 18/3/31.
 */
public class Test06 {
    public static void main(String[] args) {
        // 是不是水仙花数
        Scanner scanner = new Scanner(System.in);
        System.out.println("输入一个三位数:");
        int num = scanner.nextInt();
        int raw = num;
        int a = num / 100;
        num %= 100;
        int b = num / 10;
        int c = num % 10;
        if (raw == a * a * a + b * b * b + c * c * c) {
            System.out.println("是");
        } else {
            System.out.println("不是");
        }

    }
}
